﻿
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

  	<section id="cd-timeline" class="cd-container">

		<c:forEach var="list" items="${sessionScope.calist }">
						<div class="cd-timeline-block">
							<div class="cd-timeline-img cd-movie">
								<img src="image/f/cd-icon-movie.svg" alt="Movie">
							</div>
							<div class="cd-timeline-content">
								<h2 id="dateOne">${list.activityTitle }</h2>
								<p id="dateTwo">${list.activityContent }</p>
								<!-- 隐藏域绑定相册id -->
								<input type="hidden" id="albumId" value="${list.albumId }">
								<!-- 隐藏域绑定状态 -->
								<input type="hidden" id="classActivityId" value="${list.classActivityId }">
					            <span class="dingwei">截至时间：${list.deadline }</span>
						            <c:choose>
									    <c:when test="${list.activityState==1 }">
											<a href="javasceipt:" class="cd-read-more boxone" style="background-color:#446ee6" target="_blank">报名活动
									    </c:when>
									    <c:when test="${list.activityState==2 }">
											<a href="javasceipt:" class="cd-read-more boxtwo" style="background-color:#446ee6"target="_blank">报名结束
									    </c:when>
									   	<c:otherwise>
											<a href="javasceipt:" class="cd-read-more boxtwo" target="_blank">活动结束
									    </c:otherwise>
									</c:choose></a>
								<span class="cd-date">${list.createTime}</span>
							</div>
						</div>
		</c:forEach>
	</section>
 